<?php
\App\admin\Service\OA::load();
use App\Jobs\Fun;
use Omnipay\Omnipay;
/*


 //Cache::put($key,[123,456,789,'afdsagds000'],1);

$val=Cache::get($key);
var_dump($val);*/

$key='aa2';

$val=Cache::remember($key,10080,function(){
    return Fun::date(time());
});
var_dump($val);

///Cache::clear();


/*
$Host='https://openapi.alipay.com/gateway.do';

$gateway = Omnipay::create('Alipay_AopPage');
$gateway->setSignType(config('meice.alipay.sign_type')); //RSA/RSA2

$gateway->setPrivateKey(config('meice.alipay.private_key'));
$gateway->setAlipaySdk('alipay_sdk');

$gateway->setAlipayPublicKey(config('meice.alipay.public_key'));

$response = $gateway->transfer([
    'app_id'=>'2019072565963731',
    'out_biz_no'=>'abc123',
    'payee_type'=>'ALIPAY_LOGONID',
    'payee_account'=>'songshuai@foxmail.com',
    'amount'=>'1.12',
])->send();
var_dump($response);exit;*/
exit;
